import Vue from 'vue'
import VueRouter from "vue-router"
import shouye from '@/views/shouye.vue'
import dingdan from '@/views/dingdan.vue'
import dingdan1 from '@/views/dingdan1.vue'
import dingdan2 from '@/views/dingdan2.vue'
import dingdan3 from '@/views/dingdan3.vue'
import my from '@/views/my.vue'
import fenlei from '@/views/fenlei.vue'
Vue.use(VueRouter)
const router = new VueRouter({
  routes: [
    {
      path: '/shouye',
      component:shouye
    },
    {
      path: '/fenlei',
      component:fenlei
    },
    {
      path: '/my',
      component:my
    },
    {
      path: '/dingdan',
      component: dingdan,
      children: [
        {
        path: 'dingdan1',
        component:dingdan1
      },
      {
        path: 'dingdan2',
        component:dingdan2
      },
      {
        path: 'dingdan3',
        component:dingdan3
        },
      ]
    },
    
  ]
})
export default router